package com.xiaoxiao.xmvc.controller;

import com.xiaoxiao.xmvc.annotation.Controller;
import com.xiaoxiao.xmvc.annotation.Qualifier;
import com.xiaoxiao.xmvc.annotation.RequestMapping;
import com.xiaoxiao.xmvc.service.UserService;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2018/09/25 11:04
 **/
@Controller("userController")
@RequestMapping("/user")
public class UserController {
    @Qualifier("userServiceImpl")
    private UserService userService;

    @RequestMapping("/insert.action")
    public void insert() {
        System.out.println("userController执行！");
        userService.insert();
    }
}
